package com.jn.exam.easypoi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 江南大学1033190417
 * @since 2022-01-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PersonalQuestion对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class PersonalQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ExcelIgnore
    private String id;

    @ApiModelProperty(value = "题目描述")
    @Excel(name = "题目题干")
    private String name;

    @ApiModelProperty(value = "答案")
    @Excel(name = "答案")
    private String answer;

    @ApiModelProperty(value = "题目类型")
    @ExcelIgnore
    private String type;

    @ApiModelProperty(value = "所属专业")
    @ExcelIgnore
    private String major;

    @ApiModelProperty(value = "所属科目")
    @ExcelIgnore
    private String subject;


    @ApiModelProperty(value = "题目等级")
    @ExcelIgnore
    private Integer level;

    @ApiModelProperty(value = "所属个性化题库id")
    @ExcelIgnore
    private String storeId;

    @ApiModelProperty(value = "是否删除1表示已删除")
    @ExcelIgnore
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date gmtCreate;

    @ApiModelProperty(value = "修该时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private Date gmtModified;

}
